package com.atguigu.a_enum;

public class Demo1 {
    public static void main(String[] args) {
        //枚举类的对象 : Gender.枚举项[枚举类的对象]
        Person person1 = new Person("张三",Gender.MALE);

        System.out.println("person1 = " + person1);
    }
}
